package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcMedicalHistoryMapper;
import com.csun.cmny.provider.model.domain.OmcMedicalHistory;
import com.csun.cmny.provider.model.dto.customerArchives.MedicaHistorySelectDto;
import com.csun.cmny.provider.model.vo.customerArchives.MedicaHistoryVo;
import com.csun.cmny.provider.service.OmcMedicalHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional
public class OmcMedicalHistoryServiceImpl extends BaseService<OmcMedicalHistory> implements OmcMedicalHistoryService {

    @Resource
    private OmcMedicalHistoryMapper medicalHistoryMapper;



    @Override
    public List<MedicaHistoryVo> selectMedicaHistory(MedicaHistorySelectDto medicaHistorySelectDto) {
        return medicalHistoryMapper.selectMedicaHistory(medicaHistorySelectDto);
    }
}
